package org.adream.account.dao;

import java.util.List;
import org.adream.account.entity.HelpEntity;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface HelpDao {
	
	//增加产品信息
	int addProduct(HelpEntity help);
	  
	void deleteProduct(int id);
	  
	HelpEntity isname(String name);
	
	// 查询所有产品
	List<HelpEntity> allproduct();
	  
	HelpEntity selectProduct(int id);
	
	//不修改图片修改其他信息
	int updateProduct(@Param(value = "id")int id,@Param(value = "productid") String productid,@Param(value = "name") String name,@Param(value = "sort")String sort,@Param(value = "tucaourl") String tucaourl);
	
	//修改图片修改其他信息
	int updateimgProduct(@Param(value = "id")int id,@Param(value = "name")String name,@Param(value = "sort")String sort,@Param(value = "tucaourl")String tucaourl,@Param(value = "imgurl")String imgurl);
}